//角色战斗属性
class FightAttri {
    constructor(opts) {
        opts = opts || {};
        this.hp = opts.hp || 0; //生命
        this.name = opts.name || '';
        this.maxHp = opts.maxHp || 0; //最大生命
        this.crit = opts.crit || 0; //暴击
        this.critHurt = opts.critHurt || 0; //暴击伤害
        this.attack = opts.attack || 0; //攻击力
        this.defend = opts.defend || 0; //防御
        this.dodge = opts.dodge || 0; //闪避
        this.block = opts.block || 0; //格挡
        this.skills = opts.skills || []; 
        this.skillsCd = opts.skillsCd || [];
        this.lvl = opts.lvl || 1; //等级
    }
}

module.exports = FightAttri
